# import unittest
#
# from api.zzh_login_api import Zzh_login
# from common.assert_util import assert_util
# from parameterized import  parameterized
#
# from common.read_json_util import read_json_data
# from config import BASE_DIR
#
# class TestZzhGetHeaders():
#
#     path_filename = BASE_DIR +"/data/zzh_login.json"
#     @parameterized.expand(read_json_data(path_filename))
#     def get_headers(cls,json_data):
#         resp = Zzh_login.login(json_data)
#         token = resp.json().get("data").get("token")
#         headers = {"token":token}
#         # return headers
#         print(headers)







import requests

def get_headers():
    url = "https://dwglc.ischinese.cn/api/user/user/login"
    json_data = {"data": {"username": 371522199806249229,"password":249229}}
    resp = requests.post(url=url,json=json_data)
    token = resp.json().get("data").get("token")
    header = {"Token":token}
    return header


